package cn.kai.ymcc.dto;

import cn.kai.ymcc.domain.Course;
import cn.kai.ymcc.domain.CourseDetail;
import cn.kai.ymcc.domain.CourseMarket;
import cn.kai.ymcc.domain.CourseResource;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class CourseDto {
    @Valid
    private Course course;
    private CourseDetail courseDetail;
    private CourseMarket courseMarket;
    private CourseResource courseResource;
    @NotEmpty(message = "讲师必选")
    private List<Long> teacharIds;
}
